*******************   *********************
*************       *************
***********************  ************************
*********************www.nabdh-alm3ani.net**********************

  
index.php
     
eval('print_output("' . fetch_template('FORUMHOME') . '");');
   ......   

***************************************************************
// latest threads by rouad , edit by almuhajir
//if (!isset($action) or $action == "getactive") {
// active topics
$result = $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount from thread WHERE visible order by lastpost desc limit 5"); 


if (!mysql_num_rows($result)) {
eval("\$threadbits = \"".fetch_template('home_nothreads')."\";");

}
if (mysql_num_rows($result)) {
while ($latest_array = $DB_site->fetch_array($result)) {
$result_thread_text = $DB_site->query("select postid,dateline,pagetext from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_text);

$title = $latest_array['title'];
$startedby = $latest_array['postusername'];
$numreplies = $latest_array['replycount'];
$lastposter = $latest_array['lastposter'];
$mpostid= $result_thread_array['postid'];
$atpostdate=vbdate($dateformat,$result_thread_array[dateline]);
$atposttime=vbdate($timeformat,$result_thread_array[dateline]);

$gothreadid = $latest_array["threadid"];
if (($counter++ % 2) != 0) {
$threadbg="#D8DCD8";
} else {
$threadbg="#E9EBE9";
}

eval("\$threadbits .= \"".fetch_template('home_threadbits')."\";");
}
}
//}

if ($action == "getnew") {
// new posts by rouad , edit by almuhajir
$result = $DB_site->query("select threadid,forumid,title,postusername,lastposter from thread WHERE visible AND thread.lastpost>=".$bbuserinfo[lastvisit]." AND thread.open<>10 order by lastpost desc limit 5");

if (!mysql_num_rows($result)) {
eval("\$threadbits = \"".fetch_template('home_nothreads')."\";");
} else {
while ($latest_array = $DB_site->fetch_array($result)) {
$result_thread_text = $DB_site->query("select postid,dateline,pagetext from post where threadid='$latest_array[threadid]' order by dateline desc limit 1");
$result_thread_array = $DB_site->fetch_array($result_thread_text);

$title = $latest_array["title"];
$startedby = $latest_array["postusername"];
$lastposter = $latest_array["lastposter"];
$mpostid= $result_thread_array["postid"];
$atpostdate=vbdate($dateformat,$result_thread_array[dateline]);
$atposttime=vbdate($timeformat,$result_thread_array[dateline]);

$gothreadid = $latest_array["threadid"];
if (($counter++ % 2) != 0) {
$threadbg="#D8DCD8";
} else {
$threadbg="#E9EBE9";
}
eval("\$threadbits .= \"".fetch_template('home_threadbits')."\";");
}
}
}

eval("\$threads = \"".fetch_template('home_threads')."\";");



    


******************************************************
    
******************************************************
       home_threads
   
******************************************************

<!-- rouad.com/nabdh-alm3ani.net -->
<table bgcolor="#808080" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<table cellpadding="2" cellspacing="1" border="0" width="100%">

<tr>
<td bgcolor="#B8BEB8" colspan="4">
<table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td>
<smallfont>  </smallfont>
</td><td align=center>
<form style="margin-bottom:-2;" action="index.php" method="get">
<p align="left">
<select name="action" onchange="window.location=('index.php?s=$session[sessionhash]&action='+this.options[this.selectedIndex].value+'')">
<option>...</option>
<option>---------------------</option>
<option value="getactive"> </option>
<option value="getnew"> </option>
</select> </p>
</form>
</td></tr></table>
</td></tr><tr><td bgcolor="#E9EBE9">
<!-- rouad.com/nabdh-alm3ani.net -->
<MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 
scrollDelay=50 direction=up width="100%" height=60>
$threadbits
</marquee>

</table>
</td></tr></table>

******************************************************
     home_threadbits
   
******************************************************

<!-- rouad.com/nabdh-alm3ani.net -->
<table bgcolor="#808080" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td bgcolor="#B8BEB8"><smallfont></smallfont></td>
<td bgcolor="#B8BEB8" width="20%" align="center"><smallfont> </smallfont></td>
<td bgcolor="#B8BEB8" width="5%" align="center"><smallfont></smallfont></td>
<td bgcolor="#B8BEB8" width="22%" align="center"><smallfont> </smallfont></td>
</tr>
<tr>
<td bgcolor="$threadbg" align="right">
<p><smallfont><b><a href="showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"> $title</a></b></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont><a href="member.php?s=$session[sessionhash]&action=getinfo&username=$startedby">$startedby</a></smallfont></p>
</td>
<td bgcolor="$threadbg" align="center">
<p><smallfont>$numreplies</smallfont></p>
</td>
<td bgcolor="$threadbg" align="left">
<smallfont>
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
<td nowrap><smallfont> <a href="member.php?s=$session[sessionhash]&action=getinfo&username=$lastposter">
$lastposter</a></smallfont></td>
<td nowrap> <a href="showthread.php?s=$session[sessionhash]&goto=newpost&threadid=$gothreadid"><img src="images/buttons/lastpost.gif" border="0" alt="  "></a></td>
</tr></table>
</td>
</tr></table>
</td></tr></table>
<br>

********************************************************
  forumhome
   
$threads
   
  
$navbar
  

*********************  *********************
*********************  *********************
*******************www.nabdh-alm3ani.net*******************
****************www.nabdh-alm3ani.net/nabdhat**************